package com.example.travel.mapper;

import com.example.travel.pojo.orm.Note;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface NoteMapper {
    List<Note> getAllNotes();

    Note getNoteByNoteId(int noteId);

    List<Note> getNoteByUserId(int userId);

    int addNote(Note note);

    int updateNote(Note note);

    int deleteNote(int noteId);
}
